From a7ac9597a7fc6ca934957eb78b41e26638281953 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 29 Apr 2013 11:27:54 +0200 Subject: [PATCH] x86/EFI: fix runtime call status for compat mode Dom0 The top two bits (indicating error/warning classification) need to remain the top two bits. Signed-off-by: Jan Beulich Acked-by: Keir Fraser --- xen/arch/x86/efi/runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/efi/runtime.c b/xen/arch/x86/efi/runtime.c index be3f5376b3..37bb535db7 100644 --- a/xen/arch/x86/efi/runtime.c +++ b/xen/arch/x86/efi/runtime.c @@ -531,7 +531,7 @@ int efi_runtime_call(struct xenpf_efi_runtime_call *op) #ifndef COMPAT op->status = status; #else - op->status = (status & 0x3fffffff) | (status >> 62); + op->status = (status & 0x3fffffff) | ((status >> 32) & 0xc0000000); #endif return rc; -- 2.30.2